package com.juzi.zhuyi;

public class JieShao {
    public static void main(String[] args) {
        System.out.println("==========================\n" +
                "数组的几个注意事项：\n" +
                "1、“数据类型[] 数组名”也可以写成 “数据类型 数组名[] ”。\n" +
                "int[] ages =...;  \n" +
                "int ages[] =...;  \n" +
                "\n" +
                "double[] scores = ...;\n" +
                "double scores[] = ...;\n" +
                "\n" +
                "------------------\n" +
                "2、什么类型的数组存放什么类型的数据，否则报错。\n" +
                "int[] arrs = new int[]{30, 40, \"黑马\"};\n" +
                "------------------------\n" +
                "3、数组一旦定义出来，程序执行的过程中，长度、类型就固定了。\n" +
                "\n");
    }
}
